//
//  TimeModel.h
//  OwnDefinitionDelegete
//
//  Created by guo xiangyu on 15/5/18.
//  Copyright © 2018年 潇  岩. All rights reserved.
//

#import <Foundation/Foundation.h>
@class TimeModel;
//1.实现协议
@protocol TimeModelDelegete <NSObject>

-(void)timeModel:(TimeModel *)model withZoneName:(NSString *)name;

@end

@interface TimeModel : NSObject

//2.定义一个ID类型的引用
@property (nonatomic,weak)id<TimeModelDelegete>delegete;
//2.1添加一个定时器
@property(nonatomic,strong)NSTimer *timer;
//2.2重写初始化方法,因为要在初始化方法中把定时器启动
-(instancetype)init;

@end
